<template>
  <div id="as">
    <div @click="toggle">
      <el-button>asdfasd</el-button>
    </div>
  </div>
</template>

<script setup>
const toggle = () => {
  var el  = document.getElementById("as")
  el.style.width=window.innerWidth +"px"
  el.style.height = window.innerHeight+"px"
  el.style.zIndex = 9999
  console.log(window.innerWidth)
}
</script>
<style scoped>
#as {
  background-color: #0d8d5c;
}
</style>